<%@ include file="/taglibs.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<head>
	<title>北京邮电大学学生党员在线学习中心</title>
	<link href="${ctx}/css/pagination.css" rel="stylesheet" type="text/css" />
</head>

<div id="nav_bar">
    <img id="nav_bar_left" src="../../../styles/nav_bar_left.png" alt=""/>
    <div id="welcome_label">欢迎您，&nbsp;<s:property value="#session.session_user.studentName" />!</div>
    <img id="nav_bar_seperator" src="../../../styles/nav_bar_seperator.png" alt=""/>
    <div id="nav_location">
        <img id="nav_bar_point" src="../../../styles/nav_bar_point.png" alt="" />
        <div id="nav_cur_location">当前位置：&nbsp;<a href="${ctx}/UserAction_indexAction">首页</a>&nbsp;&nbsp;>&nbsp;&nbsp;<a href="${ctx}/UserAction_personCenter">个人中心</a>&nbsp;&nbsp;>&nbsp;&nbsp;<span style="color:black;">查看学习记录</span></div>
    </div>
    <img style="float:right; width:5px;" src="../../../styles/nav_bar_right.png" alt=""/>
    <a id="nav_logout" href="${ctx}/logoutAction">[安全退出]</a>
</div>
<div style="clear:both; height:5px;">&nbsp;</div>
<div style="min-height:450px;">
	<!-- left -->
	<div id="side_menu"  style="min-height:650px;">
	    <div id="side_menu_title">
	        <img src="../../../styles/side_menu_title_img.png" alt="" />
	        <span>个人中心</span>
	    </div>
	    <div id="side_menu_title_bottom">&nbsp;</div>
	    <div class="side_sub_menu">
	        <div class="side_menu_point">&nbsp;</div>
	        <a href="${ctx}/UserAction_personInfo">查改个人信息</a>
	    </div>
	    <div class="side_menu_seperator">&nbsp;</div>
	    <div class="side_sub_menu">
	        <div class="side_menu_point">&nbsp;</div>
	        <a href="${ctx}/UserAction_modifyPassword">修改个人密码</a>
	    </div>
	    <div class="side_menu_seperator">&nbsp;</div>
	    <div class="side_sub_menu_focus">
	        <div class="side_menu_point">&nbsp;</div>
	        <a href="${ctx}/UserAction_viewRecord">查看学习记录</a>
	    </div>
	</div>
	
	<div id="main_content">
	<div id="main_content_title">
	        <img src="../../../styles/content_title_img.png" alt="" />
	        <span>查看学习记录</span>
	    </div>
	    <div class="main_content_title_bottom">&nbsp;</div>
		<table id="theListTable" class="list-table" cellspacing="0" cellpadding="0" >
		<!-- 表头-->
		
			<TR >
				<TH >
					姓名
				</TH>
				<TH >
					访问时间
				</TH>
				<TH >
					访问IP地址
				</TH>
				<TH >
					学习时长(小时)
				</TH>
			</TR>
		

		<!--显示数据列表-->
		<s:iterator value="currentLearnRecordList" status="record" id="record">
			<TR >
				<TD>
					<s:property value="#session.session_user.StudentName"/>
				</TD>
				<TD>
					<s:date name="visiteDate" format="yyyy-MM-dd"/>
				</TD>
				<TD>
					<s:property value="visiteIp"/>
				</TD>
				<TD>
					<s:property value="studyTime"/>
				</TD>
			</TR>
		</s:iterator>
			<tr>	
				<td > 
					<b>学习总时长(小时)</b>
				</td>
				<td style="text-align: center" colspan="3">
					<b><s:property value="#request.learnTimeSum"/></b> 
				</td>
			</tr>
		</table>
		
		<div style="clear:both; height:10px;"></div>
		<div style="margin-left:0; text-align: center;">
			<s:property value="paginationCode" escape="false"/>
		</div>
</div>
<div  style="clear:both">&nbsp;</div>
</div>
